package cn.xmut.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @Class GulimallProductApplication
 * @Desc 商品服务
 *
 * 1.整合MyBatis-Plus
 *      1.1导入依赖
 *            <dependency>
 *             <groupId>com.baomidou</groupId>
 *             <artifactId>mybatis-plus-boot-starter</artifactId>
 *             <version>3.4.1</version>
 *            </dependency>
 *      1.2配置
 *          1.2.1配置数据源
 *              1)导入数据库的驱动
 *              2)在application.yml中配置数据源相关信息
 *          1.2.2配置MyBatis-Plus
 *              1)使用@MapperScan指定扫描的包
 *              2)在application.yml中配置映射文件的位置
 * 2.逻辑删除
 *      2.1配置全局的逻辑删除规则(省略)
 *      2.2配置逻辑删除的组件Bean(省略)
 *      2.3实体类字段上加上逻辑删除注解@TableLogic
 *
 * @Author zly
 * @Date 19:37 2021/10/7
 */
@EnableDiscoveryClient
@MapperScan("cn.xmut.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
